﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AllCourse.aspx.cs" Inherits="AllCourse" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/Detail.css"/>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div id="header" style="background-color: #4D8AB3;">
                <div style="text-align: left">
                    <asp:Button ID="btnAdmin" runat="server" Text="登录" OnClick="btnLogin_Click" title="返回上级"/>
                </div>
                <%--<div style="float:right">
               <asp:Label ID="lblKey" runat="server" Text="关键字"  style="text-align:left"></asp:Label>
                <asp:TextBox ID="txtSearch" runat="server" ></asp:TextBox>
                <asp:Label ID="lblquery" runat="server" Text="查询"></asp:Label>
            </div>   --%>
            </div>
        <div style="text-align: center; height:120px; width: 100%">
    
              <asp:ImageButton ID="Image2" runat="server" Height="100px" ImageAlign="Left" ImageUrl="~/images/校标.png" Width="100px" OnClick="btnLogin_Click" alt="返回课程页面" title="返回课程页面"/>
              <p id="name">学生成绩管理系统</p>

        </div>
            <asp:Label ID="Label1" runat="server" Text="全部课程：" Font-Bold="True" Font-Size="Large"></asp:Label>
            <asp:DataList ID="DataList1" runat="server" DataKeyField="id" DataSourceID="SqlDataSource1" CellPadding="90" CellSpacing="30" RepeatColumns="4" OnItemCommand="DataList1_ItemCommand" style="margin-bottom:50px">
                <ItemTemplate>

                    <asp:ImageButton ID="Image3" runat="server" Height="200px" ImageUrl='<%# Eval("photo") %>' CommandName='<%# Eval("photo") %>' BorderColor="#CCCCCC" BorderWidth="2px" />
                    <br />
                    <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' style="position:relative;left:100px"/>
                    <br />
                </ItemTemplate>
            </asp:DataList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:performanceConnectionString %>" SelectCommand="SELECT * FROM [course]"></asp:SqlDataSource>
            <br />

        </div>

    </form>
    <div id="footer" style="clear: both;position:absolute; bottom: 0px">
    </div>
</body>
</html>
